package com.roncoo.education.course.service.dao.impl.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhg
 * @since 2020-04-03
 */
@Data
public class CourseTopic extends Model<CourseTopic> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private LocalDateTime gmtCreate;

    /**
     * 问卷名称
     */
    @ApiModelProperty("问卷名称")
    private String title;

    /**
     * 说明
     */
    @ApiModelProperty("说明")
    private String descript;

    /**
     * 对应课时id
     */
    @ApiModelProperty("对应课时id")
    private Long chapterPeriodId;

    /**
     * 类型 :{1 问卷 2 测试}
     */
    @ApiModelProperty("类型 :{1 问卷 2 测试}")
    private Integer type;

    private LocalDateTime gmtModified;

    private Integer statusId;

    /**
     * 状态(1 已完成，0 待完成)
     */
    @ApiModelProperty("状态(1 已完成，0 待完成)")
    private Integer complete;

}
